3.5.1 \(\int \frac {(a+b \log (c (d+e x)^n)) \log (\frac {e (f+g x)}{e f-d g})}{d+e x} \, dx\) [401]

Optimal. Leaf size=66 \[ -\frac {\left (a+b \log \left (c (d+e x)^n\right )\right ) \text {Li}_2\left (-\frac {g (d+e x)}{e f-d g}\right )}{e}+\frac {b n \text {Li}_3\left (-\frac {g (d+e x)}{e f-d g}\right )}{e} \]

[Out]

-(a+b*ln(c*(e*x+d)^n))*polylog(2,-g*(e*x+d)/(-d*g+e*f))/e+b*n*polylog(3,-g*(e*x+d)/(-d*g+e*f))/e

________________________________________________________________________________________

Rubi [A]
time = 0.06, antiderivative size = 66, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, integrand size = 40, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.075, Rules used = {2481, 2421, 6724} \begin {gather*} \frac {b n \text {PolyLog}\left (3,-\frac {g (d+e x)}{e f-d g}\right )}{e}-\frac {\text {PolyLog}\left (2,-\frac {g (d+e x)}{e f-d g}\right ) \left (a+b \log \left (c (d+e x)^n\right )\right )}{e} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[((a + b*Log[c*(d + e*x)^n])*Log[(e*(f + g*x))/(e*f - d*g)])/(d + e*x),x]

[Out]

-(((a + b*Log[c*(d + e*x)^n])*PolyLog[2, -((g*(d + e*x))/(e*f - d*g))])/e) + (b*n*PolyLog[3, -((g*(d + e*x))/(
e*f - d*g))])/e

Rule 2421

Int[(Log[(d_.)*((e_) + (f_.)*(x_)^(m_.))]*((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))^(p_.))/(x_), x_Symbol] :> Simp
[(-PolyLog[2, (-d)*f*x^m])*((a + b*Log[c*x^n])^p/m), x] + Dist[b*n*(p/m), Int[PolyLog[2, (-d)*f*x^m]*((a + b*L
og[c*x^n])^(p - 1)/x), x], x] /; FreeQ[{a, b, c, d, e, f, m, n}, x] && IGtQ[p, 0] && EqQ[d*e, 1]

Rule 2481

Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_))^(n_.)]*(b_.))^(p_.)*((f_.) + Log[(h_.)*((i_.) + (j_.)*(x_))^(m_.)]*
(g_.))*((k_.) + (l_.)*(x_))^(r_.), x_Symbol] :> Dist[1/e, Subst[Int[(k*(x/d))^r*(a + b*Log[c*x^n])^p*(f + g*Lo
g[h*((e*i - d*j)/e + j*(x/e))^m]), x], x, d + e*x], x] /; FreeQ[{a, b, c, d, e, f, g, h, i, j, k, l, n, p, r},
 x] && EqQ[e*k - d*l, 0]

Rule 6724

Int[PolyLog[n_, (c_.)*((a_.) + (b_.)*(x_))^(p_.)]/((d_.) + (e_.)*(x_)), x_Symbol] :> Simp[PolyLog[n + 1, c*(a
+ b*x)^p]/(e*p), x] /; FreeQ[{a, b, c, d, e, n, p}, x] && EqQ[b*d, a*e]

Rubi steps

\begin {align*} \int \frac {\left (a+b \log \left (c (d+e x)^n\right )\right ) \log \left (\frac {e (f+g x)}{e f-d g}\right )}{d+e x} \, dx &=\frac {\text {Subst}\left (\int \frac {\left (a+b \log \left (c x^n\right )\right ) \log \left (\frac {e \left (\frac {e f-d g}{e}+\frac {g x}{e}\right )}{e f-d g}\right )}{x} \, dx,x,d+e x\right )}{e}\\ &=-\frac {\left (a+b \log \left (c (d+e x)^n\right )\right ) \text {Li}_2\left (-\frac {g (d+e x)}{e f-d g}\right )}{e}+\frac {(b n) \text {Subst}\left (\int \frac {\text {Li}_2\left (-\frac {g x}{e f-d g}\right )}{x} \, dx,x,d+e x\right )}{e}\\ &=-\frac {\left (a+b \log \left (c (d+e x)^n\right )\right ) \text {Li}_2\left (-\frac {g (d+e x)}{e f-d g}\right )}{e}+\frac {b n \text {Li}_3\left (-\frac {g (d+e x)}{e f-d g}\right )}{e}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.05, size = 62, normalized size = 0.94 \begin {gather*} \frac {-\left (\left (a+b \log \left (c (d+e x)^n\right )\right ) \text {Li}_2\left (\frac {g (d+e x)}{-e f+d g}\right )\right )+b n \text {Li}_3\left (\frac {g (d+e x)}{-e f+d g}\right )}{e} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[((a + b*Log[c*(d + e*x)^n])*Log[(e*(f + g*x))/(e*f - d*g)])/(d + e*x),x]

[Out]

(-((a + b*Log[c*(d + e*x)^n])*PolyLog[2, (g*(d + e*x))/(-(e*f) + d*g)]) + b*n*PolyLog[3, (g*(d + e*x))/(-(e*f)
 + d*g)])/e

________________________________________________________________________________________

Maple [F]
time = 0.22, size = 0, normalized size = 0.00 \[\int \frac {\left (a +b \ln \left (c \left (e x +d \right )^{n}\right )\right ) \ln \left (\frac {e \left (g x +f \right )}{-d g +e f}\right )}{e x +d}\, dx\]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((a+b*ln(c*(e*x+d)^n))*ln(e*(g*x+f)/(-d*g+e*f))/(e*x+d),x)

[Out]

int((a+b*ln(c*(e*x+d)^n))*ln(e*(g*x+f)/(-d*g+e*f))/(e*x+d),x)

________________________________________________________________________________________

Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*log(c*(e*x+d)^n))*log(e*(g*x+f)/(-d*g+e*f))/(e*x+d),x, algorithm="maxima")

[Out]

integrate((b*log((x*e + d)^n*c) + a)*log(-(g*x + f)*e/(d*g - f*e))/(x*e + d), x)

________________________________________________________________________________________

Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*log(c*(e*x+d)^n))*log(e*(g*x+f)/(-d*g+e*f))/(e*x+d),x, algorithm="fricas")

[Out]

integral((b*log((x*e + d)^n*c)*log(-(g*x + f)*e/(d*g - f*e)) + a*log(-(g*x + f)*e/(d*g - f*e)))/(x*e + d), x)

________________________________________________________________________________________

Sympy [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: TypeError} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*ln(c*(e*x+d)**n))*ln(e*(g*x+f)/(-d*g+e*f))/(e*x+d),x)

[Out]

Exception raised: TypeError >> Invalid comparison of non-real zoo

________________________________________________________________________________________

Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*log(c*(e*x+d)^n))*log(e*(g*x+f)/(-d*g+e*f))/(e*x+d),x, algorithm="giac")

[Out]

integrate((b*log((x*e + d)^n*c) + a)*log(-(g*x + f)*e/(d*g - f*e))/(x*e + d), x)

________________________________________________________________________________________

Mupad [F]
time = 0.00, size = -1, normalized size = -0.02 \begin {gather*} \int \frac {\ln \left (-\frac {e\,\left (f+g\,x\right )}{d\,g-e\,f}\right )\,\left (a+b\,\ln \left (c\,{\left (d+e\,x\right )}^n\right )\right )}{d+e\,x} \,d x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((log(-(e*(f + g*x))/(d*g - e*f))*(a + b*log(c*(d + e*x)^n)))/(d + e*x),x)

[Out]

int((log(-(e*(f + g*x))/(d*g - e*f))*(a + b*log(c*(d + e*x)^n)))/(d + e*x), x)

________________________________________________________________________________________